package com.gas.gm.pdu;

import com.gas.gm.pdu.msg.MessageStorage;
import com.gas.gm.pdu.session.GasGmSession;

public class GasDataProcessorFactory implements DataProcessorFactory {
	
	private DataProcessorContainer container;
	private MessageStorage storage;
	
	public GasDataProcessorFactory(DataProcessorContainer container,MessageStorage storage) {
		this.container=container;
		this.storage=storage;
	
	}

	public DataProcessor createDataProcessor(GasGmSession session) {
		MessageDataProcessor processor=new MessageDataProcessor(session,storage);
		processor.setProcessorContainer(container);
		return processor;
	}

}
